# SCHEDULEDTWITTER MODEL
# -----------------------------------------------------------------------------
# Represents a single scheduled twitter model.

if exports?
    BaseModel = require "./baseModel.coffee"
else
    BaseModel = window.App.BaseModel

# ScheduledTwitter class implementation starts here.
class ScheduledTwitter extends BaseModel

    # The final URL will be /db/scheduledtwitter.
    url: "scheduledtwitter"

    attributes:
        countdownId: null       # the ID of the countdown related to this scheduled Twitter message
        targetDate: null        # when to dispatch the message
        user: null              # target Twitter username
        message: null           # the message to be sent


# MODULE EXPORTS
# -----------------------------------------------------------------------------
if exports?
    module.exports = ScheduledTwitter
else
    window.App.ScheduledTwitter = ScheduledTwitter